package com.ashbur.lottery.interfaces.assembler;

import com.ashbur.lottery.domain.strategy.model.vo.DrawAwardVO;
import com.ashbur.lottery.dto.AwardDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

import java.util.List;
import java.util.stream.Stream;

/**
 * @author : Eumenides
 * @Description :
 * @date : 2022/8/21
 * @Copyright ： 公众号：菜鸟的大厂梦
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE, unmappedSourcePolicy = ReportingPolicy.IGNORE)
public interface AwardMapping extends IMapping<DrawAwardVO, AwardDTO>{

    @Mapping(target = "userId", source = "uId")
    @Override
    AwardDTO sourceToTarget(DrawAwardVO var1);

    @Override
    DrawAwardVO targetToSource(AwardDTO var1);
}
